from datetime import date
from typing import Optional, Union
from enum import Enum

from pydantic import BaseModel


class OverdueItem(BaseModel):
	environment: str
	project_id: str
	period: str
	start_date: date


class Env(Enum):
	test = "test"
	qa = "qa"


class BusiType(Enum):
	project = "project"
	asset = "asset"


class RunCaseDetail(BaseModel):
	batch_id: str
	case_name: str
	status: str
	step: str
	operator: str
	exception_name: Optional[str] = ""
	run_time: str
	script: str


class DailyCount(BaseModel):
	script: str
	start_date: str
	end_date: str